package com.cyy.friend.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient("chenyu-user")
public interface UserClient {

    /**
     * 增加粉丝数
     */
    @RequestMapping(value="/user/incFans/{userid}/{fan}",method = RequestMethod.GET)
    void incFansCount(@PathVariable("userid") String userid,@PathVariable("fan") int fan);


    /**
     * 增加关注数
     */
    @RequestMapping(value="/user/incFollows/{userid}/{fan}",method = RequestMethod.GET)
    void incFollowCount(@PathVariable("userid") String userid,@PathVariable("fan") int fan);
}
